package com.stylefeng.guns.rest.common.persistence.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotations.Version;
import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 用户拼单表
 * </p>
 *
 * @author ruiyifeng123
 * @since 2019-03-08
 */
@TableName("wz_user_merge")
public class WzUserMerge extends Model<WzUserMerge> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "user_merge_id", type = IdType.ID_WORKER)
    private Long userMergeId;
    /**
     * 拼单商品id
     */
    @TableField("map_merge_id")
    private Long mapMergeId;
    /**
     * 礼券id
     */
    @TableField("coupon_id")
    private Long couponId;
    /**
     * 用户编号
     */
    @TableField("user_code")
    private Long userCode;
    /**
     * 昵称
     */
    @TableField("nick_name")
    private String nickName;
    /**
     * 头像
     */
    @TableField("avatar_url")
    private String avatarUrl;
    /**
     * 购买数量
     */
    private Integer quantity;
    /**
     * 状态：0-待开始;1-进行中;2-已完成;3-活动过期;
     */
    private Integer status;
    /**
     * 参与人数
     */
    @TableField("join_number")
    private Integer joinNumber;
    /**
     * 结束时间
     */
    @TableField("end_time")
    private Date endTime;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;

    @Version
    private Integer version;


    public Long getUserMergeId() {
        return userMergeId;
    }

    public void setUserMergeId(Long userMergeId) {
        this.userMergeId = userMergeId;
    }

    public Long getMapMergeId() {
        return mapMergeId;
    }

    public void setMapMergeId(Long mapMergeId) {
        this.mapMergeId = mapMergeId;
    }

    public Long getCouponId() {
        return couponId;
    }

    public void setCouponId(Long couponId) {
        this.couponId = couponId;
    }

    public Long getUserCode() {
        return userCode;
    }

    public void setUserCode(Long userCode) {
        this.userCode = userCode;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getAvatarUrl() {
        return avatarUrl;
    }

    public void setAvatarUrl(String avatarUrl) {
        this.avatarUrl = avatarUrl;
    }

    public Integer getQuantity() {
        return quantity;
    }

    public void setQuantity(Integer quantity) {
        this.quantity = quantity;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getJoinNumber() {
        return joinNumber;
    }

    public void setJoinNumber(Integer joinNumber) {
        this.joinNumber = joinNumber;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    @Override
    protected Serializable pkVal() {
        return this.userMergeId;
    }

    @Override
    public String toString() {
        return "WzUserMerge{" +
        "userMergeId=" + userMergeId +
        ", mapMergeId=" + mapMergeId +
        ", couponId=" + couponId +
        ", userCode=" + userCode +
        ", nickName=" + nickName +
        ", avatarUrl=" + avatarUrl +
        ", quantity=" + quantity +
        ", status=" + status +
        ", joinNumber=" + joinNumber +
        ", endTime=" + endTime +
        ", createTime=" + createTime +
        ", version=" + version +
        "}";
    }
}
